<?php

/**
 * 商城详情
 */

namespace app\shop\mobile;

class InfoMobile extends \app\shop\common\InfoCommon {

    public function index() {
        parent::index();
    }

    public function content() {

        $info = $this->info;
        $classInfo = $this->classInfo;

        $this->pageInfo['name'] = '图文详情';

        $tpl = 'shop_' . $this->siteConfig['tpl_content'] . '_info';
        if($classInfo['tpl_content']) {
            $tpl = $classInfo['tpl_content'] . '_info';
        }
        if($info['tpl']) {
            $tpl = $info['tpl'];
        }

        $this->assign('info', $info);
        $this->siteDisplay($tpl);
    }

}